﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.ObjectModel;

namespace GetMan.Core.DB.Entities
{
    [Table(Name = "tb_workspaces")]
    public class WorkSpaceEntity : SortEntity
    {
        /// <summary>
        /// 工作单元名称
        /// </summary>
        [Column(StringLength = 255)]
        public string WorkSpaceName
        {
            get; set;
        }

        /// <summary>
        /// 描述
        /// </summary>
        [Column(StringLength = 300)]
        public string Description
        {
            get; set;
        }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime
        {
            get; set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            get; set;
        }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable
        {
            get; set;
        }

        /// <summary>
        /// 是否选中项
        /// </summary>
        public bool IsSelected
        {
            get; set;
        }

        [Navigate(nameof(NodesEntity.WorkSpaceId))]
        public Collection<NodesEntity> Collections
        {
            get; set;
        }


    }
}